import { showToast } from "./sysMsg";

//获取位置
export const getLocationPosition = () => {
    return new Promise((resolve, reject) => uni.getLocation({
        type: 'wgs84',
        success: res => resolve(res),
        fail: () => {
            showToast('获取地址失败，将导致部分功能不可用');
            reject(false)
        }
    }))
};

